import request from '@/utils/request';

export async function getErrorReportFileInfoByPage (params: any) {
    return request('/api/product/getErrorReportFileInfoByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addErrorReportFileInfo (params: any) {
    return request('/api/product/addErrorReportFileInfo', {
    method: 'POST',
    data: params,
  });
}

export async function updateErrorReportFileInfo (params: any) {
    return request('/api/product/updateErrorReportFileInfo', {
    method: 'POST',
    data: params,
  });
}

export async function delErrorReportFileInfo (params: any) {
    return request('/api/product/delErrorReportFileInfo', {
    method: 'POST',
    data: params,
  });
}


export async function exportErrorReportFileInfo(params: any) {
    return request('/api/product/exportErrorReportFileInfo', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getErrorReportFileInfoByPage, addErrorReportFileInfo, updateErrorReportFileInfo, delErrorReportFileInfo, exportErrorReportFileInfo }
